﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.BaseInfo.Cars
{
    public interface ICarRepository
    {
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<CarDto>> GetShowCar(string carBrand,string license,string driverName,int? companyId,int pageindex,int pagesize);
        ///测试
        Task<List<CarDto>> GetShowCars();
        /// <summary>
        /// 显示公司
        /// </summary>
        /// <returns></returns>
        Task<List<CompanyDto>> GetShowCompany();
        /// <summary>
        /// 删除车辆
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteDelCar(int id);
        /// <summary>
        /// 批量删除车辆
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteDelsCar(string ids);
        /// <summary>
        /// 编辑修改
        /// </summary>
        /// <param name="carDto"></param>
        /// <returns></returns>
        Task<int> PutUpdateCar(CarDto carDto);
        /// <summary>
        /// 添加车辆
        /// </summary>
        /// <param name="carDto"></param>
        /// <returns></returns>
        Task<int> PostAddCar(CarDto carDto);
        Task<object> Addsss();
    }
}
